<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>人脸注册</title>
    <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
</head>
<body>
    <input type="button" value="摄像" onclick="getMedia();">
    <video height="200px" autoplay="autoplay"></video>
    <canvas id="canvas1" height="300px" width="300px"></canvas>
    <input type="button" value="拍照" onclick="getPhoto();">


    <form action="" method="post">
        <input type="hidden" id="face" name="face_img">
        <p>
            用户名：<input type="text" name="username">
        </p>
        <p>
            密码：<input type="password" name="password">
        </p>
        <input type="submit" value="提交">
    </form>
    <script type="text/javascript" src="{{ static_url('js/ai.js') }}"></script>
    {% if error %}
        {{ error }}
    {% end %}
</body>
</html>